﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RIDA.Globals;
using RIDA.Globals.Interfaces;
using System.ComponentModel;
using System.Windows;

namespace RIDA.DiagramDesigner.ViewModel
{
    [Serializable]
    public class DesignerItemViewModel : DiagramElementViewModelBase
    {
        public DesignerItemViewModel()
        {
            DragThumb = new DragViewModel();
            ResizeThumb = new ResizeViewModel();
            ConnectorDecorator = new ConnectorDecoratorViewModel()
            {
                 DesignerItemViewModel=this
            };
        }

        #region Properties

        private ViewModelBase _content;
        public ViewModelBase Content
        {
            get { return _content; }
            set
            {
                _content = value;
                OnNotifyPropertyChanged("Content");
            }
        }

        private ViewModelBase _dragThumb;
        public ViewModelBase DragThumb
        {
            get { return _dragThumb; }
            set
            {
                _dragThumb = value;
                OnNotifyPropertyChanged("DragThumb");
            }
        }

        private ViewModelBase _resizeThumb;
        public ViewModelBase ResizeThumb
        {
            get { return _resizeThumb; }
            set
            {
                _resizeThumb = value;
                OnNotifyPropertyChanged("ResizeThumb");     
            }
        }

        private ViewModelBase _connectorDecorator;
        public ViewModelBase ConnectorDecorator
        {
            get { return _connectorDecorator; }
            set
            {
                _connectorDecorator = value;
                OnNotifyPropertyChanged("ConnectorDecorator");     
            }
        }

       

        #endregion

        
    }
}
